<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>分类列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css"
	href='<c:url value="/uikit-2.25.0/css/uikit.min.css"/>'>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
	src='<c:url value="/uikit-2.25.0/js/uikit.min.js"/>'></script>
</head>


<style type="text/css">
	body {background: rgb(254,238,189);}
	table {font-family: 宋体; font-size: 11pt; border-color: rgb(78,78,78);  width: 60%;}
	#th {background: rgb(78,78,78);}
</style>
  </head>
  
  <body>
    <h2 style="text-align: center;">分类列表</h2>
    <table align="center" border="1" cellpadding="0" cellspacing="0" class="uk-table uk-table-hover uk-table-condensed">
    	<tr id="th" bordercolor="rgb(78,78,78)">
    		<th class="uk-text-center"><span class="uk-text-muted">分类名称</span></th>
    		<th class="uk-text-center"><span class="uk-text-muted">操作</span></th>
    	</tr>
		<c:forEach items="${categorys }" var="category">
			<tr bordercolor="rgb(78,78,78)">
				<td class="uk-text-center">${category.cname }</td>
				<td class="uk-text-center"><a href="<c:url value='/adminCategoryServlet?method=findByCategoryCid&sign=0&cid=${ category.cid }'/>">修改</a> |
					<a href="<c:url value='/adminCategoryServlet?method=findByCategoryCid&sign=1&cid=${ category.cid }'/>">删除</a>
				</td>
			</tr>
		</c:forEach>



	</table>
  </body>
</html>
